﻿using System;
using System.Collections.Generic;
using System.Text;
using Glue.Lib;
using Glue.Data;
using Glue.Data.Providers.SQLite;

namespace SqueezeboxBridge
{
    public class Global
    {
        public static readonly IDataProvider DataProvider = (IDataProvider)Configuration.Get("dataprovider");

        public static void CreateTables()
        {
            DataProvider.ExecuteNonQuery(@"
                CREATE TABLE IF NOT EXISTS file (
                id          VARCHAR(32) PRIMARY KEY,
                path        VARCHAR(255) NOT NULL,
                cachedate   DATETIME NOT NULL
                );");
        }

    }
}
